load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test")

py_library(
    name = "cc_compiler_params_processor_library",
    srcs = ["cc_compiler_params_processor.py"],
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
)

py_binary(
    name = "cc_compiler_params_processor",
    srcs = ["cc_compiler_params_processor.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
    deps = [":cc_compiler_params_processor_library"],
)

py_test(
    name = "cc_compiler_params_processor_tests",
    srcs = ["cc_compiler_params_processor_tests.py"],
    deps = [
        ":cc_compiler_params_processor_library",
        "//:py_init_shim",
    ],
)

py_binary(
    name = "incremental_link_params_processor",
    srcs = ["incremental_link_params_processor.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
)

py_binary(
    name = "legacy_link_params_processor",
    srcs = ["legacy_link_params_processor.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
)

py_library(
    name = "swift_debug_settings_processor_library",
    srcs = ["swift_debug_settings_processor.py"],
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
)

py_binary(
    name = "swift_debug_settings_processor",
    srcs = ["swift_debug_settings_processor.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
    deps = [":swift_debug_settings_processor_library"],
)

py_test(
    name = "swift_debug_settings_processor_tests",
    srcs = ["swift_debug_settings_processor_tests.py"],
    deps = [
        ":swift_debug_settings_processor_library",
        "//:py_init_shim",
    ],
)

py_library(
    name = "swift_compiler_params_processor_library",
    srcs = ["swift_compiler_params_processor.py"],
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
)

py_binary(
    name = "swift_compiler_params_processor",
    srcs = ["swift_compiler_params_processor.py"],
    python_version = "PY3",
    srcs_version = "PY3",
    # TODO: Restrict visibility
    visibility = ["//visibility:public"],
    deps = [":swift_compiler_params_processor_library"],
)

py_test(
    name = "swift_compiler_params_processor_tests",
    srcs = ["swift_compiler_params_processor_tests.py"],
    deps = [
        ":swift_compiler_params_processor_library",
        "//:py_init_shim",
    ],
)

# Release

filegroup(
    name = "release_files",
    srcs = glob(
        ["**"],
        exclude = [
            "**/.*",
        ],
    ),
    tags = ["manual"],
    visibility = ["//:__subpackages__"],
)
